﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="hhDoanhsonhom.ascx.cs" Inherits="eDream.Page.hhDoanhsonhom" %>
<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxCallbackPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>

<div style="margin-top: 20px">
    <div class="cloum_text">
        Từ ngày
    </div>
    <div class="cloum_1">
        <dx:ASPxDateEdit ID="dteFrom" runat="server" Theme="DevEx" Height="29px"></dx:ASPxDateEdit>
    </div>
    <div class="cloum_text">
        Đến ngày
    </div>
    <div class="cloum_1">
        <dx:ASPxDateEdit ID="dteTo" runat="server" Theme="DevEx" Height="29px"></dx:ASPxDateEdit>
    </div>
    
    <div class="cloum_1">
        <dx:ASPxButton ID="btnTim" runat="server" Text="Tìm" Theme="iOS" AutoPostBack="false">
            <ClientSideEvents Click="function(s, e) {cpanl.PerformCallback();}" />
        </dx:ASPxButton>
    </div>
    <div class="Clear"></div>
    <div class="grvConten">
        <dx:ASPxCallbackPanel ID="ASPxCallbackPanel1" runat="server" ClientInstanceName="cpanl" OnCallback="ASPxCallbackPanel1_Callback"  Width="100%">
            <PanelCollection>
                <dx:PanelContent>
                    <dx:ASPxGridView ID="grvResult" runat="server" Theme="DevEx" Width="100%" AutoGenerateColumns="False"  KeyFieldName="index" OnHtmlRowPrepared="grvResult_HtmlRowPrepared" OnLoad="grvResult_Load" OnCustomSummaryCalculate="grvResult_CustomSummaryCalculate">                       
                        <Columns>
                            <dx:GridViewDataTextColumn Caption="STT" ShowInCustomizationForm="True" VisibleIndex="0" FieldName="index" ReadOnly="True" Width="7%">
                                <EditFormSettings Visible="False"/>
                                <HeaderStyle HorizontalAlign="Center" />
                                <CellStyle HorizontalAlign="Center"></CellStyle>
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn ShowInCustomizationForm="True" Caption="Tài khoản" VisibleIndex="1" FieldName="UserName" Width="13%">
                                <HeaderStyle Font-Bold="true" Wrap="True" HorizontalAlign="Center"/>
                                <CellStyle Wrap="True"></CellStyle>
                                
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn ShowInCustomizationForm="True" Caption="Họ và tên" VisibleIndex="2" FieldName="Fullname" Width="20%">
                                 <HeaderStyle Font-Bold="true" Wrap="True" HorizontalAlign="Center"/>
                                <CellStyle Wrap="True"></CellStyle>
                                
                             </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn ShowInCustomizationForm="True" Caption="Cấp bậc" VisibleIndex="3" FieldName="capbac" Width="15%">
                                 <HeaderStyle Font-Bold="true" Wrap="True" HorizontalAlign="Center"/>
                                <CellStyle Wrap="True"></CellStyle>
                                
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataDateColumn ShowInCustomizationForm="True" Caption="Ngày giao dịch" VisibleIndex="4" FieldName="DateBegin" Width="15%">
                                 <HeaderStyle Font-Bold="true" Wrap="True" HorizontalAlign="Center"/>
                                <CellStyle Wrap="True"></CellStyle>
                                <PropertiesDateEdit DisplayFormatString="dd/MM/yyyy"></PropertiesDateEdit>
                            </dx:GridViewDataDateColumn>
                            <dx:GridViewDataTextColumn ShowInCustomizationForm="True" Caption="Đã đóng" VisibleIndex="5" FieldName="Dadong" Width="10%">
                                 <HeaderStyle Font-Bold="true" Wrap="True" HorizontalAlign="Center"/>
                                <CellStyle Wrap="True"></CellStyle>
                                <FooterCellStyle ForeColor="Red" Font-Bold="true"></FooterCellStyle>
                            </dx:GridViewDataTextColumn>
                            
                            <dx:GridViewDataTextColumn FieldName="nguoigioithieu" Caption="Người giới thiệu" ShowInCustomizationForm="True" VisibleIndex="6" Width="20%">
                                 <HeaderStyle Font-Bold="true" Wrap="True" HorizontalAlign="Center"/>
                                <CellStyle Wrap="True"></CellStyle>
                                
                            </dx:GridViewDataTextColumn>
                           
                        </Columns>
                        <Settings ShowFooter="true" ShowFilterRow="true" ShowFilterBar="Auto" />
                        <TotalSummary>
                            <dx:ASPxSummaryItem FieldName="Dadong" SummaryType="Custom"  DisplayFormat="C0"/>
                        </TotalSummary>
                      <SettingsPager Mode="ShowAllRecords" ></SettingsPager>
                       <SettingsBehavior AllowSort="true" />
                    </dx:ASPxGridView>
                    
                </dx:PanelContent>
            </PanelCollection>
        </dx:ASPxCallbackPanel>
        
        
    </div>

</div>
